var a = getApp();

Page({
    data: {
        data_beijing: []
    },
    view_tap: function(t) {
        a.globalData.linkbeijing = t.currentTarget.dataset.src, wx.navigateBack({
            delta: 0
        });
    },
    wenzi_tap: function(t) {
        wx.showModal({
            title: "高级定制服务",
            content: '是否复制客服微信号\n\n添加记得备注"定制"哦',
            confirmText: "复制",
            success: function(t) {
                t.confirm ? wx.setClipboardData({
                    data: String(a.globalData.linkweixin),
                    success: function(a) {
                        wx.getClipboardData({
                            success: function(a) {
                                console.log(a.data), wx.showToast({
                                    title: "已复制客服微信号",
                                    icon: "success"
                                });
                            }
                        });
                    }
                }) : console.log("取消");
            }
        });
    },
    onLoad: function(t) {
        this.setData({
            data_beijing: a.globalData.yulanbeijing
        });
    },
    onShareAppMessage: function() {}
});